package java67_adv7;

public class Student {

	private String name;
	private int age;

	public Student(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}

	public Student(String name) {
		super();
		this.name = name;
	}

	private Student(int a) {
		this.age = a;
	}

	private void changeAge(int a) {
		this.age = a;
		if (age > 45) {
			this.name = "老" + name;
		}
	}

	@Override
	public String toString() {
		return "Student [name=" + name + ", age=" + age + "]";
	}

}
